﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace BigPang.Common.Service
{
    [ServiceContract]
    public interface IGameCallback
    {
        [OperationContract(IsOneWay = true)]
        void OnPlayerStartMove( int id, int x, int y, int dir );

        [OperationContract(IsOneWay = true)]
        void OnPlayerStopMove( int id, int x, int y );

        [OperationContract(IsOneWay = true)]
        void OnObjectCreated(string type, string name, int id, int x, int y);

        [OperationContract(IsOneWay = true)]
        void OnObjectDestory(int id);

        [OperationContract(IsOneWay = true)]
        void OnAction(int id, int actionId);

        [OperationContract(IsOneWay = true)]
        void OnHit(int id, int sourceId);

        [OperationContract(IsOneWay = true)]
        void OnPlayerJoin();

        [OperationContract(IsOneWay = true)]
        void OnPlayerQuit();

        [OperationContract(IsOneWay = true)]
        void TakeControl(int id);
    }
}
